/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-03-24 11:30:14
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\src\ve\common\components\baseComs\wms\uiInput.js
 * @CIMC-V2
 */
import { exInput, exSwitch, exSizeSelect, exRadioGroup, exValidateSelect } from '@ve/common/components/extension'
import { constantTip } from '@ve/common/components/extension/tip'
export default {
  VERSION: '20220427',
  type: 'uiInputCreate',
  name: '创建人员',
  icon: 'input-cursor-move',
  svg: 'chuangjianren',
  //数据别名
  // dataName: 'uiInput_data',
  //数据集合 表单 列表等等
  data: {
    requestData: {},
  },
  extension: {
    model: exInput('Model', 'ADDWHONAME'),
    //rule: exSwitch('验证', false),
    extendRule: exValidateSelect('', {}, []),
    type: exRadioGroup('类型', 'text', [
      {
        value: 'text',
        label: '输入框',
      },
      {
        value: 'password',
        label: '密码框',
      },
      {
        value: 'textarea',
        label: '多行文本',
      },
    ]),
    label: exInput('标签', '创建人员'),
    size: exSizeSelect('尺寸', 'mini'),
    placeholder: exInput('提示', '请输入'),
    width: exInput('宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    labelWidth: exInput('label宽度', 'auto', '填写数字:单位px,auto:自动宽度'),
    disabled: exSwitch('禁用', true),
    hidden: exSwitch('隐藏', false),
    defaultValue: exInput('默认值', '', constantTip()),
    ignoreClearValue: exSwitch('忽略清空', false, '开启后清空表单会保留默认值'),
  },
  //交互
  interaction: [],
  //条件、逻辑指令
  logicInstruction: [],
}
